home *** CD-ROM | disk | FTP | other *** search
- 148
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- EncryptFile
- --- RECORDSEPARATOR ---
- Platform:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows and Macintosh
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Description:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baEncryptFile encrypts/decrypts a file.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Usage:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Result = baEncryptFile( FileName , Key )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Arguments:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- String, String.
- --- RECORDSEPARATOR ---
- FileName is the file to encrypt/decrypt.
- --- RECORDSEPARATOR ---
- Key is the string to use as the encryption key.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Returns:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Integer.
- --- RECORDSEPARATOR ---
- Returns 1 if successful, else 0.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Examples:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Director:
- --- RECORDSEPARATOR ---
- set OK = baEncryptFile( "d:\results.dat" , "This is my key" )
- --- RECORDSEPARATOR ---
- Authorware:
- --- RECORDSEPARATOR ---
- OK := baEncryptFile( "d:\\results.dat" , "This is my key" )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Notes:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- This function uses an xor routine to encrypt a file. To decrypt the file, run the
- --- RECORDSEPARATOR ---
- function again using the same key. This will return it to it's original state.
- --- RECORDSEPARATOR ---
- On
- --- RECORDSEPARATOR ---
- Macintosh
- --- RECORDSEPARATOR ---
- , only the data fork is encrypted - the resource fork is untouched.